package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreStockInitBillDetailEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 库存期初导入单明细 保存对象
 *
 * @author fs 2021-03-08
 */
@Data
@ApiModel("库存期初导入单明细-保存对象")
public class StoreStockInitBillDetailSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "期初导入单id")
    private Integer billId;

    @ApiModelProperty(value = "商品sku")
    private String sku;

    @ApiModelProperty(value = "仓库编码")
    private String storeCode;

    @ApiModelProperty(value = "实时库存数量")
    private Integer skuNum;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除，0-未删除 1-已删除")
    private Boolean deleted;

    public StoreStockInitBillDetailEntity convertEntity() {
        StoreStockInitBillDetailEntity target = new StoreStockInitBillDetailEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
